package mydesign.chapters01.v2;


import mydesign.chapters01.v2.flybehavior.FlyNoWay;
import mydesign.chapters01.v2.flybehavior.FlyWithings;
import mydesign.chapters01.v2.quackbehavior.MuteQuack;
import mydesign.chapters01.v2.quackbehavior.Quack;

/**
 * 模型鸭
 */
public class ModelDuck extends Duck {

    public ModelDuck(){
        flyBehavior = new FlyNoWay();
        quackBehavior = new MuteQuack();
    }


    public void display(){

        System.out.println("我是模型鸭");

    }


}
